﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LPY.LeHealth.DAL;
using LPY.LeHealth.DTO;
namespace LPY.LeHealth.Service
{
    public class Priservice
    {
        private PriDAL priDAL; 
          public Priservice()
        {
           priDAL = new PriDAL();        
        }
        public bool Addpri(string name,string pcont)
        {
            var Pri  = new Priv();
            Pri.Pname = name;
            Pri.Pcoent = pcont;
            return priDAL.Addpri(Pri);
        }
    }
}
